import { PageVo } from "../common/page.vo";
import { ApiProperty } from "@nestjs/swagger";


export class QueryProductVo extends PageVo {
    // 商品名称
    @ApiProperty({ example: "华为", description: "华为耳机" })
    productName: string
    // 分类id
    @ApiProperty({ example: "1", description: "分类id" })
    cateId: number
    // 是否热门
    @ApiProperty({ example: "1", description: "是否热门" })
    isHot: number
    // 排序字段
    @ApiProperty({ example: "updated_time", description: "排序字段" })
    orderField: "updated_time" | "created_time" | "sale_price" | "original_price"
    // 排序方向：desc倒序 asc：升序
    @ApiProperty({ example: "DESC", description: "排序方向" })
    direction: "ASC" | "DESC"

}